﻿#include <iostream>
using namespace std;
int main()
{
	string username = "admin";
	string password = "admin";
	string type = "vip";
	string inusername, inpassword, intype;
	while (true) {
		cout << "—————购买许可证——————" << endl;
		cout << "请输入用户名(如admin)：" << endl;
		cin >> inusername;
		cout << "请输入口令(如admin)：" << endl;
		cin >> inpassword;
		cout << "请输入许可证类型（如vip）：" << endl;
		cin >> intype;

		if (username == inusername && password == inpassword && type == intype)
		{
			cout << "许可证为 0123456789" << endl;
			break;
		}
		else
		{
			cout << "输入错误" << endl;
			cout << "退出请输入Q,输入其他返回购买界面" << endl;
			string quit;
			cin >> quit;
			if (quit == "Q")break;
		}
	}
}